<?php defined('_JEXEC') or die();

jimport('joomla.application.component.model');
JModel::addIncludePath(JPATH_SITE.'/components/com_nbeventmap/models', 'NBEventMapsModel');

class ModNetbaseMapHelper {

	public static function getMaps() {
		$model = JModel::getInstance('NBEventMap', 'NBEventMapsModel', array('ignore_request' => false));
		$map   = $model->getView();
		return $map;
	}
	
	public static function getDatas() {
		$model = JModel::getInstance('NBEventMap', 'NBEventMapsModel', array('ignore_request' => false));
		$rows       = $model->getNBEventMapList();
		return $rows;
	}
}
